package com.base.commonlib.bean;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by arvin on 2018/10/26.
 */

@Entity
public class User {
//    {
//        "token":null,
//            "deviceType":null,
//            "userId":"bcc2ef35924b4ad49824330802c290d7",
//            "userName":"用户2132",
//            "accountId":"dc7c66875b534ea99b31476f23630ba6",
//            "realName":null,
//            "orgId":null,
//            "orgName":null,
//            "orgCode":null,
//            "deptId":null,
//            "deptName":null,
//            "deptCode":null,
//            "postId":null,
//            "postName":null,
//            "phone":"17625302132",
//            "address":null,
//            "roleInfo":null
//    }
    @Transient
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public boolean isNeedPassword() {
        return needPassword;
    }

    /**
     * token : null
     * deviceType : null
     * userId : bcc2ef35924b4ad49824330802c290d7
     * userName : 用户2132
     * accountId : dc7c66875b534ea99b31476f23630ba6
     * realName : null
     * orgId : null
     * orgName : null
     * orgCode : null
     * deptId : null
     * deptName : null
     * deptCode : null
     * postId : null
     * postName : null
     * phone : 17625302132
     * address : null
     * roleInfo : null
     */
    private String deviceType;
    @Id
    private String userId;
    private String userName;
    private String accountId;
    private String realName;
    private String orgId;
    private String orgName;
    private String orgCode;
    private String deptId;
    private String deptName;
    private String deptCode;
    private String postId;
    private String postName;
    private String phone;
    private String address;
    private String roleInfo;
    private String companyName;
    private String companyId;
    private String depAddress;
    private String tenantId;
    private String avatar;
    private String email;
    private Integer gender;
    private boolean needPassword;

    /**
     * 生日
     */
    private String birthday;
    private String canVerify;
    @Generated(hash = 652759317)
    public User(String deviceType, String userId, String userName, String accountId,
            String realName, String orgId, String orgName, String orgCode,
            String deptId, String deptName, String deptCode, String postId,
            String postName, String phone, String address, String roleInfo,
            String companyName, String companyId, String depAddress,
            String tenantId, String avatar, String email, Integer gender,
            boolean needPassword, String birthday, String canVerify) {
        this.deviceType = deviceType;
        this.userId = userId;
        this.userName = userName;
        this.accountId = accountId;
        this.realName = realName;
        this.orgId = orgId;
        this.orgName = orgName;
        this.orgCode = orgCode;
        this.deptId = deptId;
        this.deptName = deptName;
        this.deptCode = deptCode;
        this.postId = postId;
        this.postName = postName;
        this.phone = phone;
        this.address = address;
        this.roleInfo = roleInfo;
        this.companyName = companyName;
        this.companyId = companyId;
        this.depAddress = depAddress;
        this.tenantId = tenantId;
        this.avatar = avatar;
        this.email = email;
        this.gender = gender;
        this.needPassword = needPassword;
        this.birthday = birthday;
        this.canVerify = canVerify;
    }
    @Generated(hash = 586692638)
    public User() {
    }
    public String getDeviceType() {
        return this.deviceType;
    }
    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }
    public String getUserId() {
        return this.userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return this.userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getAccountId() {
        return this.accountId;
    }
    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }
    public String getRealName() {
        return this.realName;
    }
    public void setRealName(String realName) {
        this.realName = realName;
    }
    public String getOrgId() {
        return this.orgId;
    }
    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
    public String getOrgName() {
        return this.orgName;
    }
    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }
    public String getOrgCode() {
        return this.orgCode;
    }
    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }
    public String getDeptId() {
        return this.deptId;
    }
    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }
    public String getDeptName() {
        return this.deptName;
    }
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
    public String getDeptCode() {
        return this.deptCode;
    }
    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }
    public String getPostId() {
        return this.postId;
    }
    public void setPostId(String postId) {
        this.postId = postId;
    }
    public String getPostName() {
        return this.postName;
    }
    public void setPostName(String postName) {
        this.postName = postName;
    }
    public String getPhone() {
        return this.phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getAddress() {
        return this.address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getRoleInfo() {
        return this.roleInfo;
    }
    public void setRoleInfo(String roleInfo) {
        this.roleInfo = roleInfo;
    }
    public String getCompanyName() {
        return this.companyName;
    }
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
    public String getCompanyId() {
        return this.companyId;
    }
    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
    public String getDepAddress() {
        return this.depAddress;
    }
    public void setDepAddress(String depAddress) {
        this.depAddress = depAddress;
    }
    public String getTenantId() {
        return this.tenantId;
    }
    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }
    public String getAvatar() {
        return this.avatar;
    }
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public String getEmail() {
        return this.email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public Integer getGender() {
        return this.gender;
    }
    public void setGender(Integer gender) {
        this.gender = gender;
    }
    public boolean getNeedPassword() {
        return this.needPassword;
    }
    public void setNeedPassword(boolean needPassword) {
        this.needPassword = needPassword;
    }
    public String getBirthday() {
        return this.birthday;
    }
    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
    public String getCanVerify() {
        return this.canVerify;
    }
    public void setCanVerify(String canVerify) {
        this.canVerify = canVerify;
    }


}
